package com.wm.task1;

public enum WeekDay {
    MONDAY("周一"), TUESDAY("周二"), WEDNESDAY("周三"), THURSDAY("周四"), FRIDAY("周五"), SATURDAY("周六"), SUNDAY("周日");
    String weekDay;
    WeekDay(String weekDay){
        this.weekDay = weekDay;
    }

    public String getChineseName() {
        return weekDay;
    }
    public boolean isWeekend(){
        if (SATURDAY.getChineseName().equals(getChineseName()) ||SUNDAY.getChineseName().equals(getChineseName()) ){
            return true;
        }
        return false;
    }
}
